/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-16<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import cn.cnsy123.bookwebsiteserver.validator.impl.IpAddrValidatorImpl;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-16<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Target({ElementType.METHOD,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IpAddrValidatorImpl.class)
public @interface IpAddrValidator {
    
    String message() default "IP地址不合法";
    
    Class<?>[] groups() default {};
    
    Class<? extends Payload>[] payload() default {};

}
